package online.heycm.rbac.domain.basic.repository.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 角色资源权限
 *
 * @author heycm
 * @since 2024-01-11
 */
@Data
@TableName("basic_role_resource")
public class BasicRbacRoleResource implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色id
     */
    private Integer roleId;

    /**
     * 资源id
     */
    private Integer resourceId;

    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;
}
